package com.wry.sharding.controller;

import com.wry.sharding.dao.Shoping;
import com.wry.sharding.mapper.ShopingMapper;
import com.wry.sharding.service.ShopingService;
import org.apache.calcite.runtime.Resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <h1>  <h1>
 *
 * @author wry
 * @since 2025/1/2 17:16
 */
@RequestMapping("test")
@RestController
public class TestController {

    @Resource
    private ShopingService shopingService;

    @GetMapping("insert-test01")
    public void inserttest01() {
        Shoping shoping = new Shoping();
        shoping.setShopingId(1L);
        shoping.setShopingName("test1");
        shoping.setShopingPrice(22);
        shopingService.save(shoping);
    }
}
